package DAO;

import java.util.List;

import model.impl.Passenger;
import model.impl.Ticket;

/**
 *  TicketDAO interface, extend GenericDAO interface using as parameters
 *  entity of Ticket and Integer class as an ID. It also adds some specific 
 *  to Ticket entity methods
 */
public interface TicketDAO extends GenericDAO<Ticket, Integer> {
	
	/**
	 * Checks given passenger and looks for all passenger's tickets
	 * it.
	 * 
	 * @param  passenger - Passenger entity for where to look for tickets
	 * @return      	 - List of tickets of the given passenger or null 
	 * 					   if there	is no passengers on train
	 */
	public List<Ticket> getAllTickets(Passenger passenger);
}
